<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: caret.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00620.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">caret.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03629_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00620_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a451133a6bc94aba7a6b9818691d5faf9"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a451133a6bc94aba7a6b9818691d5faf9">UT_CaretSet</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a451133a6bc94aba7a6b9818691d5faf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4c915d2daf9e565570ae2eaef4a6312"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#aa4c915d2daf9e565570ae2eaef4a6312">UT_InvertCaret</a> ()</td></tr>
<tr class="separator:aa4c915d2daf9e565570ae2eaef4a6312"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cbaedd861a489fe981eca941b8568f4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a3cbaedd861a489fe981eca941b8568f4">InternalDestroyCaret</a> ()</td></tr>
<tr class="separator:a3cbaedd861a489fe981eca941b8568f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a799e19e0a801dd3bd7352c330e1f2b60"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a799e19e0a801dd3bd7352c330e1f2b60">_DestroyCaret</a> ()</td></tr>
<tr class="separator:a799e19e0a801dd3bd7352c330e1f2b60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64265307565fb0f603157ddd0351feae"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a64265307565fb0f603157ddd0351feae">_CreateCaret</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, HBITMAP hBitmap, int cx, int <a class="el" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</td></tr>
<tr class="separator:a64265307565fb0f603157ddd0351feae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abaf8f946537e0303f6ba99f21d716670"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#abaf8f946537e0303f6ba99f21d716670">InternalShowCaret</a> ()</td></tr>
<tr class="separator:abaf8f946537e0303f6ba99f21d716670"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1376ba7ebe3f4b2ab5ebe9fa20b3ed87"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a1376ba7ebe3f4b2ab5ebe9fa20b3ed87">InternalHideCaret</a> ()</td></tr>
<tr class="separator:a1376ba7ebe3f4b2ab5ebe9fa20b3ed87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53cef8c6c46d511caa89b5a2d6837ffa"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a53cef8c6c46d511caa89b5a2d6837ffa">_ShowCaret</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a53cef8c6c46d511caa89b5a2d6837ffa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a967ba3e6bec5fc9b3afff900c5c1b5da"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a967ba3e6bec5fc9b3afff900c5c1b5da">_HideCaret</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a967ba3e6bec5fc9b3afff900c5c1b5da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c8e23caf8de0a17159f77151376731c"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a9c8e23caf8de0a17159f77151376731c">CaretBlinkProc</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> id, LONG lParam)</td></tr>
<tr class="separator:a9c8e23caf8de0a17159f77151376731c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad545935ce22b3b3c881eb97851affe7e"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#ad545935ce22b3b3c881eb97851affe7e">_SetCaretBlinkTime</a> (<a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cmsBlink)</td></tr>
<tr class="separator:ad545935ce22b3b3c881eb97851affe7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3de53a21890f4af864abd65c498ca86a"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a3de53a21890f4af864abd65c498ca86a">_SetCaretPos</a> (int x, int y)</td></tr>
<tr class="separator:a3de53a21890f4af864abd65c498ca86a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ab1b90712fa387dde57aee1d2b6d519"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00620.html#a7ab1b90712fa387dde57aee1d2b6d519">_GetCaretPos</a> (LPPOINT lppt)</td></tr>
<tr class="separator:a7ab1b90712fa387dde57aee1d2b6d519"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a64265307565fb0f603157ddd0351feae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64265307565fb0f603157ddd0351feae">&#9670;&nbsp;</a></span>_CreateCaret()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _CreateCaret </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HBITMAP&#160;</td>
          <td class="paramname"><em>hBitmap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00238">238</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;{</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    BITMAP bitmap;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160; </div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    pq = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160; </div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="comment">     * Don&#39;t allow the app to create a caret in a window</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<span class="comment">     * from another queue.</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">if</span> (GETPTI(pwnd)-&gt;pq != pq) {</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    }</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a> != NULL)</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        <a class="code" href="a00620.html#a3cbaedd861a489fe981eca941b8568f4">InternalDestroyCaret</a>();</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; </div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    Lock(&amp;pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, pwnd);</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a66951a0ad337be0de6e9afef18a5f0c4">iHideLevel</a> = 1;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#af2ea03b8e56f206aa9ed964f0c3b3b24">fOn</a> = TRUE;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a> = FALSE;</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#abcd75f399219ad50af9203b3af664789">tid</a> = TIDq(<a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>());</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a> == 0)</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a> = SYSMET(CYBORDER);</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    <span class="keywordflow">if</span> (cx == 0)</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        cx = SYSMET(CXBORDER);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; </div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <span class="keywordflow">if</span> ((pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a9fc5abab889d6fd98fcc0efdc177bd7e">hBitmap</a> = hBitmap) &gt; (HBITMAP)1) {</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        GreExtGetObjectW(hBitmap, <span class="keyword">sizeof</span>(BITMAP), &amp;bitmap);</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;        <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a> = bitmap.bmHeight;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        cx = bitmap.bmWidth;</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    }</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#ad36501a70b25e18bcf48dd6e03392305">cy</a> = <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#af905a9989361d094908ad04e08f6429d">cx</a> = cx;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a76d9dcc2ea83b79b30ea63fd45ad98db">hTimer</a> = <a class="code" href="a00887.html#a23803d0eb05592a1e1ae26b60e68b420">_SetSystemTimer</a>(pwnd, IDSYS_CARET, <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a337256ee4b9e7c11b14e88d307effa30">dtCaretBlink</a>,</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            <a class="code" href="a00620.html#a9c8e23caf8de0a17159f77151376731c">CaretBlinkProc</a>);</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00887_source.html#l00078">_SetSystemTimer()</a>, <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00620_source.html#l00403">CaretBlinkProc()</a>, <a class="el" href="a00365_source.html#l02246">tagCARET::cx</a>, <a class="el" href="a00716_source.html#l00456">cy</a>, <a class="el" href="a00365_source.html#l02245">tagCARET::cy</a>, <a class="el" href="a00365_source.html#l00986">tagSERVERINFO::dtCaretBlink</a>, <a class="el" href="a00365_source.html#l02241">tagCARET::fOn</a>, <a class="el" href="a00365_source.html#l02240">tagCARET::fVisible</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00365_source.html#l02247">tagCARET::hBitmap</a>, <a class="el" href="a00365_source.html#l02248">tagCARET::hTimer</a>, <a class="el" href="a00365_source.html#l02242">tagCARET::iHideLevel</a>, <a class="el" href="a00620_source.html#l00190">InternalDestroyCaret()</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00365_source.html#l02239">tagCARET::spwnd</a> , 以及 <a class="el" href="a00365_source.html#l02249">tagCARET::tid</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l05177">NtUserCreateCaret()</a> , 以及 <a class="el" href="a00833_source.html#l02005">xxxSBWndProc()</a>.</p>

</div>
</div>
<a id="a799e19e0a801dd3bd7352c330e1f2b60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a799e19e0a801dd3bd7352c330e1f2b60">&#9670;&nbsp;</a></span>_DestroyCaret()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _DestroyCaret </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00218">218</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;{</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00620.html#a451133a6bc94aba7a6b9818691d5faf9">UT_CaretSet</a>(NULL))</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <a class="code" href="a00620.html#a3cbaedd861a489fe981eca941b8568f4">InternalDestroyCaret</a>();</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00620_source.html#l00190">InternalDestroyCaret()</a> , 以及 <a class="el" href="a00620_source.html#l00028">UT_CaretSet()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00686_source.html#l02092">xxxCheckFocus()</a> , 以及 <a class="el" href="a00833_source.html#l02005">xxxSBWndProc()</a>.</p>

</div>
</div>
<a id="a7ab1b90712fa387dde57aee1d2b6d519"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ab1b90712fa387dde57aee1d2b6d519">&#9670;&nbsp;</a></span>_GetCaretPos()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _GetCaretPos </td>
          <td>(</td>
          <td class="paramtype">LPPOINT&#160;</td>
          <td class="paramname"><em>lppt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00551">551</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;{</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> pti = PtiCurrentShared();</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160; </div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    pq = pti-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;    lppt-&gt;x = pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a6150e0515f7202e2fb518f7206ed97dc">x</a>;</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;    lppt-&gt;y = pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a0a2f84ed7838f07779ae24c5a9086d33">y</a>;</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160; </div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00365_source.html#l02243">tagCARET::x</a> , 以及 <a class="el" href="a00365_source.html#l02244">tagCARET::y</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l05940">NtUserGetCaretPos()</a>.</p>

</div>
</div>
<a id="a967ba3e6bec5fc9b3afff900c5c1b5da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a967ba3e6bec5fc9b3afff900c5c1b5da">&#9670;&nbsp;</a></span>_HideCaret()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _HideCaret </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00383">383</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;{</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00620.html#a451133a6bc94aba7a6b9818691d5faf9">UT_CaretSet</a>(pwnd))</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;        <a class="code" href="a00620.html#a1376ba7ebe3f4b2ab5ebe9fa20b3ed87">InternalHideCaret</a>();</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00620_source.html#l00334">InternalHideCaret()</a> , 以及 <a class="el" href="a00620_source.html#l00028">UT_CaretSet()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l04041">NtUserHideCaret()</a> , 以及 <a class="el" href="a00833_source.html#l02005">xxxSBWndProc()</a>.</p>

</div>
</div>
<a id="ad545935ce22b3b3c881eb97851affe7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad545935ce22b3b3c881eb97851affe7e">&#9670;&nbsp;</a></span>_SetCaretBlinkTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _SetCaretBlinkTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>cmsBlink</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00449">449</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;{</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160; </div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;<span class="comment">     * Blow it off if the caller doesn&#39;t have the proper access rights</span></div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00839.html#a14fe1eb47a22ba1b713ca76ddf4180af">CheckWinstaWriteAttributesAccess</a>()) {</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    }</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160; </div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a337256ee4b9e7c11b14e88d307effa30">dtCaretBlink</a> = cmsBlink;</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160; </div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;    pq = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160; </div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>) {</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;        <a class="code" href="a00887.html#ae3b42fc45613df6ae1803075394c386a">_KillSystemTimer</a>(pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, IDSYS_CARET);</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a76d9dcc2ea83b79b30ea63fd45ad98db">hTimer</a> = <a class="code" href="a00887.html#a23803d0eb05592a1e1ae26b60e68b420">_SetSystemTimer</a>(pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, IDSYS_CARET,</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;                <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a337256ee4b9e7c11b14e88d307effa30">dtCaretBlink</a>, <a class="code" href="a00620.html#a9c8e23caf8de0a17159f77151376731c">CaretBlinkProc</a>);</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160; </div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    }</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160; </div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00887_source.html#l00408">_KillSystemTimer()</a>, <a class="el" href="a00887_source.html#l00078">_SetSystemTimer()</a>, <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00620_source.html#l00403">CaretBlinkProc()</a>, <a class="el" href="a00839_source.html#l00485">CheckWinstaWriteAttributesAccess()</a>, <a class="el" href="a00365_source.html#l00986">tagSERVERINFO::dtCaretBlink</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00365_source.html#l02248">tagCARET::hTimer</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a> , 以及 <a class="el" href="a00365_source.html#l02239">tagCARET::spwnd</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00719_source.html#l01681">xxxUpdatePerUserSystemParameters()</a>.</p>

</div>
</div>
<a id="a3de53a21890f4af864abd65c498ca86a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3de53a21890f4af864abd65c498ca86a">&#9670;&nbsp;</a></span>_SetCaretPos()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _SetCaretPos </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00486">486</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;{</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160; </div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;<span class="comment">     * If this thread does not have the caret set, return FALSE.</span></div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00620.html#a451133a6bc94aba7a6b9818691d5faf9">UT_CaretSet</a>(NULL)) {</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_ACCESS_DENIED, <a class="code" href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a>, <span class="stringliteral">&quot;Access denied in _SetCaretPos&quot;</span>);</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    }</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160; </div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;<span class="comment">     * If the caret isn&#39;t changing position, do nothing (but return success).</span></div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    pq = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a6150e0515f7202e2fb518f7206ed97dc">x</a> == x &amp;&amp; pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a0a2f84ed7838f07779ae24c5a9086d33">y</a> == y)</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160; </div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;<span class="comment">     * If the caret is visible, turn it off while we move it.</span></div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a>)</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;        <a class="code" href="a00620.html#aa4c915d2daf9e565570ae2eaef4a6312">UT_InvertCaret</a>();</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160; </div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;<span class="comment">     * Adjust to the new position.</span></div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a6150e0515f7202e2fb518f7206ed97dc">x</a> = x;</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a0a2f84ed7838f07779ae24c5a9086d33">y</a> = y;</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160; </div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;<span class="comment">     * Set a new timer so it&#39;ll blink in the new position dtCaretBlink</span></div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;<span class="comment">     * milliseconds from now.</span></div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    <a class="code" href="a00887.html#ae3b42fc45613df6ae1803075394c386a">_KillSystemTimer</a>(pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, IDSYS_CARET);</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a76d9dcc2ea83b79b30ea63fd45ad98db">hTimer</a> = <a class="code" href="a00887.html#a23803d0eb05592a1e1ae26b60e68b420">_SetSystemTimer</a>(pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, IDSYS_CARET,</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;            <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a337256ee4b9e7c11b14e88d307effa30">dtCaretBlink</a>, <a class="code" href="a00620.html#a9c8e23caf8de0a17159f77151376731c">CaretBlinkProc</a>);</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#af2ea03b8e56f206aa9ed964f0c3b3b24">fOn</a> = TRUE;</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160; </div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;<span class="comment">     * Draw it immediately now if the hide level permits it.</span></div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a> = FALSE;</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a66951a0ad337be0de6e9afef18a5f0c4">iHideLevel</a> == 0) {</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;        pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a> = TRUE;</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        <a class="code" href="a00620.html#aa4c915d2daf9e565570ae2eaef4a6312">UT_InvertCaret</a>();</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;    }</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160; </div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00887_source.html#l00408">_KillSystemTimer()</a>, <a class="el" href="a00887_source.html#l00078">_SetSystemTimer()</a>, <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00620_source.html#l00403">CaretBlinkProc()</a>, <a class="el" href="a00365_source.html#l00986">tagSERVERINFO::dtCaretBlink</a>, <a class="el" href="a00365_source.html#l02241">tagCARET::fOn</a>, <a class="el" href="a00365_source.html#l02240">tagCARET::fVisible</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00365_source.html#l02248">tagCARET::hTimer</a>, <a class="el" href="a00365_source.html#l02242">tagCARET::iHideLevel</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00371_source.html#l00030">RIP_VERBOSE</a>, <a class="el" href="a00371_source.html#l00119">RIPERR0</a>, <a class="el" href="a00365_source.html#l02239">tagCARET::spwnd</a>, <a class="el" href="a00620_source.html#l00028">UT_CaretSet()</a>, <a class="el" href="a00620_source.html#l00094">UT_InvertCaret()</a>, <a class="el" href="a00365_source.html#l02243">tagCARET::x</a> , 以及 <a class="el" href="a00365_source.html#l02244">tagCARET::y</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00833_source.html#l00753">SetSBCaretPos()</a>.</p>

</div>
</div>
<a id="a53cef8c6c46d511caa89b5a2d6837ffa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53cef8c6c46d511caa89b5a2d6837ffa">&#9670;&nbsp;</a></span>_ShowCaret()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _ShowCaret </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00362">362</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;{</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00620.html#a451133a6bc94aba7a6b9818691d5faf9">UT_CaretSet</a>(pwnd))</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        <a class="code" href="a00620.html#abaf8f946537e0303f6ba99f21d716670">InternalShowCaret</a>();</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00620_source.html#l00294">InternalShowCaret()</a> , 以及 <a class="el" href="a00620_source.html#l00028">UT_CaretSet()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l04833">NtUserShowCaret()</a>, <a class="el" href="a00833_source.html#l01453">xxxEndScroll()</a>, <a class="el" href="a00833_source.html#l01803">xxxSBTrackInit()</a> , 以及 <a class="el" href="a00833_source.html#l02005">xxxSBWndProc()</a>.</p>

</div>
</div>
<a id="a9c8e23caf8de0a17159f77151376731c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c8e23caf8de0a17159f77151376731c">&#9670;&nbsp;</a></span>CaretBlinkProc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG CaretBlinkProc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00403">403</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;{</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160; </div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;<span class="comment">     * If this window doesn&#39;t even have a timer, just return.  TRUE is</span></div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;<span class="comment">     * returned, which gets returned from DispatchMessage().  Why? Because</span></div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;<span class="comment">     * it is compatible with Win3.</span></div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    pq = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    <span class="keywordflow">if</span> (pwnd != pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>)</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160; </div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;<span class="comment">     * Flip the logical cursor state.  If the hide level permits it, flip</span></div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;<span class="comment">     * the physical state and draw the caret.</span></div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#af2ea03b8e56f206aa9ed964f0c3b3b24">fOn</a> ^= 1;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a66951a0ad337be0de6e9afef18a5f0c4">iHideLevel</a> == 0) {</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;        pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a> ^= 1;</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        <a class="code" href="a00620.html#aa4c915d2daf9e565570ae2eaef4a6312">UT_InvertCaret</a>();</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    }</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160; </div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160; </div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    DBG_UNREFERENCED_PARAMETER(message);</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    DBG_UNREFERENCED_PARAMETER(<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    DBG_UNREFERENCED_PARAMETER(lParam);</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00365_source.html#l02241">tagCARET::fOn</a>, <a class="el" href="a00365_source.html#l02240">tagCARET::fVisible</a>, <a class="el" href="a00365_source.html#l02242">tagCARET::iHideLevel</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00365_source.html#l02239">tagCARET::spwnd</a> , 以及 <a class="el" href="a00620_source.html#l00094">UT_InvertCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00620_source.html#l00238">_CreateCaret()</a>, <a class="el" href="a00620_source.html#l00449">_SetCaretBlinkTime()</a> , 以及 <a class="el" href="a00620_source.html#l00486">_SetCaretPos()</a>.</p>

</div>
</div>
<a id="a3cbaedd861a489fe981eca941b8568f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cbaedd861a489fe981eca941b8568f4">&#9670;&nbsp;</a></span>InternalDestroyCaret()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InternalDestroyCaret </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00190">190</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;{</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="comment">     * Hide the caret, kill the timer, and null out the caret structure.</span></div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    pq = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <a class="code" href="a00620.html#a1376ba7ebe3f4b2ab5ebe9fa20b3ed87">InternalHideCaret</a>();</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <a class="code" href="a00887.html#ae3b42fc45613df6ae1803075394c386a">_KillSystemTimer</a>(pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, IDSYS_CARET);</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a76d9dcc2ea83b79b30ea63fd45ad98db">hTimer</a> = 0;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    Unlock(&amp;pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a9fc5abab889d6fd98fcc0efdc177bd7e">hBitmap</a> = NULL;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a66951a0ad337be0de6e9afef18a5f0c4">iHideLevel</a> = 0;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00887_source.html#l00408">_KillSystemTimer()</a>, <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00365_source.html#l02247">tagCARET::hBitmap</a>, <a class="el" href="a00365_source.html#l02248">tagCARET::hTimer</a>, <a class="el" href="a00365_source.html#l02242">tagCARET::iHideLevel</a>, <a class="el" href="a00620_source.html#l00334">InternalHideCaret()</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a> , 以及 <a class="el" href="a00365_source.html#l02239">tagCARET::spwnd</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00620_source.html#l00238">_CreateCaret()</a>, <a class="el" href="a00620_source.html#l00218">_DestroyCaret()</a> , 以及 <a class="el" href="a00635_source.html#l01273">xxxDestroyWindow()</a>.</p>

</div>
</div>
<a id="a1376ba7ebe3f4b2ab5ebe9fa20b3ed87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1376ba7ebe3f4b2ab5ebe9fa20b3ed87">&#9670;&nbsp;</a></span>InternalHideCaret()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InternalHideCaret </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00334">334</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;{</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; </div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    pq = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160; </div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;<span class="comment">     * If the caret is physically visible, invert it to turn off the bits.</span></div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;<span class="comment">     * Adjust the hide count upwards to remember this hide level.</span></div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a>)</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        <a class="code" href="a00620.html#aa4c915d2daf9e565570ae2eaef4a6312">UT_InvertCaret</a>();</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160; </div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a> = FALSE;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a66951a0ad337be0de6e9afef18a5f0c4">iHideLevel</a>++;</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00365_source.html#l02240">tagCARET::fVisible</a>, <a class="el" href="a00365_source.html#l02242">tagCARET::iHideLevel</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a> , 以及 <a class="el" href="a00620_source.html#l00094">UT_InvertCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00620_source.html#l00383">_HideCaret()</a>, <a class="el" href="a00620_source.html#l00190">InternalDestroyCaret()</a>, <a class="el" href="a00812_source.html#l00296">xxxInternalBeginPaint()</a> , 以及 <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a>.</p>

</div>
</div>
<a id="abaf8f946537e0303f6ba99f21d716670"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abaf8f946537e0303f6ba99f21d716670">&#9670;&nbsp;</a></span>InternalShowCaret()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void InternalShowCaret </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00294">294</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;{</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160; </div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    pq = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160; </div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<span class="comment">     * If the caret hide level is aleady 0 (meaning it&#39;s ok to show) and the</span></div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="comment">     * caret is not physically on, try to invert now if it&#39;s turned on.</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a66951a0ad337be0de6e9afef18a5f0c4">iHideLevel</a> == 0) {</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <span class="keywordflow">if</span> (!pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a>) {</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;            <span class="keywordflow">if</span> ((pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a> = pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#af2ea03b8e56f206aa9ed964f0c3b3b24">fOn</a>) != 0) {</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                <a class="code" href="a00620.html#aa4c915d2daf9e565570ae2eaef4a6312">UT_InvertCaret</a>();</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;            }</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        }</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    }</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160; </div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;<span class="comment">     * Adjust the hide caret hide count.  If we hit 0, we can show the</span></div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;<span class="comment">     * caret.  Try to invert it if it&#39;s turned on.</span></div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160; </div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">if</span> (--pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a66951a0ad337be0de6e9afef18a5f0c4">iHideLevel</a> == 0) {</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;        <span class="keywordflow">if</span> ((pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a> = pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#af2ea03b8e56f206aa9ed964f0c3b3b24">fOn</a>) != 0)</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;            <a class="code" href="a00620.html#aa4c915d2daf9e565570ae2eaef4a6312">UT_InvertCaret</a>();</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    }</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00365_source.html#l02241">tagCARET::fOn</a>, <a class="el" href="a00365_source.html#l02240">tagCARET::fVisible</a>, <a class="el" href="a00365_source.html#l02242">tagCARET::iHideLevel</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a> , 以及 <a class="el" href="a00620_source.html#l00094">UT_InvertCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00812_source.html#l00431">_EndPaint()</a>, <a class="el" href="a00620_source.html#l00362">_ShowCaret()</a> , 以及 <a class="el" href="a00836_source.html#l00731">xxxScrollWindowEx()</a>.</p>

</div>
</div>
<a id="a451133a6bc94aba7a6b9818691d5faf9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a451133a6bc94aba7a6b9818691d5faf9">&#9670;&nbsp;</a></span>UT_CaretSet()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL UT_CaretSet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00028">28</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <a class="code" href="a02889.html">PTHREADINFO</a> ptiCurrent;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">     * Current queue have a caret? If not, return FALSE.</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    ptiCurrent = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>();</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    pq = ptiCurrent-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a> == NULL) {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_ACCESS_DENIED,</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;                <a class="code" href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a>,</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                <span class="stringliteral">&quot;Access denied in UT_CaretSet to current queue&#39;s caret&quot;</span>);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    }</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">     * If the current task does not own the caret, then return FALSE</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">     * but we let 32 bit multithreaded apps set the caret position from</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">     * a second thread for compatibility to our NT 3.1 BETAs</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordflow">if</span> (pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#abcd75f399219ad50af9203b3af664789">tid</a> != TIDq(ptiCurrent)) {</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="a02889.html">PTHREADINFO</a> ptiCursorOwner;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        ptiCursorOwner = <a class="code" href="a00824.html#a3a58c2275b35d4e251d1d2801c54b477">PtiFromThreadId</a>(pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#abcd75f399219ad50af9203b3af664789">tid</a>);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">if</span> ((ptiCurrent-&gt;<a class="code" href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">TIF_flags</a> &amp; TIF_16BIT) || ptiCursorOwner == NULL ||</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                (ptiCurrent-&gt;<a class="code" href="a02889.html#a215417492fadc11678c689da2447f02e">ppi</a> != ptiCursorOwner-&gt;<a class="code" href="a02889.html#a215417492fadc11678c689da2447f02e">ppi</a>))  {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_ACCESS_DENIED,</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                    <a class="code" href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a>,</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;                    <span class="stringliteral">&quot;Access denied in UT_CaretSet&quot;</span>);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    }</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment">     * If pwnd == NULL, just checking to see if current queue has caret.</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment">     * It does, so return TRUE.</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordflow">if</span> (pwnd == NULL)</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="comment">     * pwnd != NULL.  Check to see if the caret is for pwnd.  If so, return</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">     * TRUE.</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordflow">if</span> (pwnd == pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>)</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00899_source.html#l02271">tagTHREADINFO::ppi</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00824_source.html#l03425">PtiFromThreadId()</a>, <a class="el" href="a00371_source.html#l00030">RIP_VERBOSE</a>, <a class="el" href="a00371_source.html#l00119">RIPERR0</a>, <a class="el" href="a00365_source.html#l02239">tagCARET::spwnd</a>, <a class="el" href="a00365_source.html#l02249">tagCARET::tid</a> , 以及 <a class="el" href="a00899_source.html#l02294">tagTHREADINFO::TIF_flags</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00620_source.html#l00218">_DestroyCaret()</a>, <a class="el" href="a00620_source.html#l00383">_HideCaret()</a>, <a class="el" href="a00620_source.html#l00486">_SetCaretPos()</a> , 以及 <a class="el" href="a00620_source.html#l00362">_ShowCaret()</a>.</p>

</div>
</div>
<a id="aa4c915d2daf9e565570ae2eaef4a6312"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4c915d2daf9e565570ae2eaef4a6312">&#9670;&nbsp;</a></span>UT_InvertCaret()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UT_InvertCaret </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00620_source.html">caret.c</a> 第 <a class="el" href="a00620_source.html#l00094">94</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;{</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    HDC hdc;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwnd;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="a02869.html">PQ</a> pq;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    HBITMAP hbmSave;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    BOOL fRestore;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    pq = <a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;<a class="code" href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">pq</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    pwnd = pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordflow">if</span> (pwnd == NULL || !<a class="code" href="a00365.html#ad3225ce06580cb58802233512f3d9c81">IsVisible</a>(pwnd)) {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">fVisible</a> = FALSE;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    }</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">     * Don&#39;t have a dc.  Get one for this window and draw the caret.</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    hdc = <a class="code" href="a00644.html#a2123a4aeb57f1a00139f7d8ada52b213">_GetDC</a>(pwnd);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordflow">if</span> (fRestore = (pwnd-&gt;<a class="code" href="a02581.html#a79d8579e0cf1a8fb985bc709e08f61ac">hrgnUpdate</a> ? TRUE : FALSE)) {</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        GreSaveDC(hdc);</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">if</span> (TestWF(pwnd, WFWIN31COMPAT))</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            <a class="code" href="a00896.html#a65a8e2481578c9a2f313bfd34f9aa249">_ExcludeUpdateRgn</a>(hdc, pwnd);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="comment">     * If the caret bitmap is NULL, the caret is a white pattern invert</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment">     * If the caret bitmap is == 1, the caret is a gray pattern.</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment">     * If the caret bitmap is  &gt; 1, the caret is really a bitmap.</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordflow">if</span> ((pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a9fc5abab889d6fd98fcc0efdc177bd7e">hBitmap</a>) &gt; (HBITMAP)1) {</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="comment">         * The caret is a bitmap...  SRCINVERT it onto the screen.</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        hbmSave = GreSelectBitmap(<a class="code" href="a03257.html#a1a36496b13c02b06ee64e9c01c029477">ghdcMem</a>, pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a9fc5abab889d6fd98fcc0efdc177bd7e">hBitmap</a>);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        GreBitBlt(hdc, pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a6150e0515f7202e2fb518f7206ed97dc">x</a>, pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a0a2f84ed7838f07779ae24c5a9086d33">y</a>, pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#af905a9989361d094908ad04e08f6429d">cx</a>,</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;              pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#ad36501a70b25e18bcf48dd6e03392305">cy</a>, <a class="code" href="a03257.html#a1a36496b13c02b06ee64e9c01c029477">ghdcMem</a>, 0, 0, SRCINVERT, 0);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        GreSelectBitmap(<a class="code" href="a03257.html#a1a36496b13c02b06ee64e9c01c029477">ghdcMem</a>, hbmSave);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        POLYPATBLT PolyData;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="comment">         * The caret is a pattern (gray or white).  PATINVERT it onto the</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="comment">         * screen.  Remember to unrealize the gray object so it aligns</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="comment">         * to the window correctly.</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="comment">         * Remove call to UnrealizeObject.  GDI handles this on NT for</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="comment">         * brushes.</span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="comment">         * UnrealizeObject(hbrGray);</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        PolyData.x  = pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a6150e0515f7202e2fb518f7206ed97dc">x</a>;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        PolyData.y  = pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a0a2f84ed7838f07779ae24c5a9086d33">y</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        PolyData.cx = pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#af905a9989361d094908ad04e08f6429d">cx</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        PolyData.cy = pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#ad36501a70b25e18bcf48dd6e03392305">cy</a>;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <span class="keywordflow">if</span> ((pq-&gt;<a class="code" href="a02869.html#ade15a80896abdba1533b909440c29699">caret</a>.<a class="code" href="a02653.html#a9fc5abab889d6fd98fcc0efdc177bd7e">hBitmap</a>) == (HBITMAP)1) {</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;            <span class="comment">//hbrSave = GreSelectBrush(hdc, ghbrGray);</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;            PolyData.BrClr.hbr = <a class="code" href="a03638.html#a0f352eeb287eff80ca03bb5947be417e">ghbrGray</a>;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;            <span class="comment">//hbrSave = GreSelectBrush(hdc, ghbrWhite);</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;            PolyData.BrClr.hbr = <a class="code" href="a03638.html#aedc8dc2d00e3a727cd22a983b28b1ce8">ghbrWhite</a>;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        }</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        GrePolyPatBlt(hdc,PATINVERT,&amp;PolyData,1,PPB_BRUSH);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="comment">//GrePatBlt(hdc, pq-&gt;caret.x, pq-&gt;caret.y, pq-&gt;caret.cx, pq-&gt;caret.cy,</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <span class="comment">//        PATINVERT);</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <span class="comment">//</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <span class="comment">//GreSelectBrush(hdc,hbrSave);</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordflow">if</span> (fRestore)</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        GreRestoreDC(hdc, -1);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <a class="code" href="a00644.html#a1ec030500a19f775519fbaf16c15f814">_ReleaseDC</a>(hdc);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00896_source.html#l01398">_ExcludeUpdateRgn()</a>, <a class="el" href="a00644_source.html#l00066">_GetDC()</a>, <a class="el" href="a00644_source.html#l00102">_ReleaseDC()</a>, <a class="el" href="a00899_source.html#l02182">tagQ::caret</a>, <a class="el" href="a00365_source.html#l02246">tagCARET::cx</a>, <a class="el" href="a00365_source.html#l02245">tagCARET::cy</a>, <a class="el" href="a00365_source.html#l02240">tagCARET::fVisible</a>, <a class="el" href="a03638_source.html#l00025">ghbrGray</a>, <a class="el" href="a03638_source.html#l00023">ghbrWhite</a>, <a class="el" href="a03257_source.html#l00399">ghdcMem</a>, <a class="el" href="a00365_source.html#l02247">tagCARET::hBitmap</a>, <a class="el" href="a00365_source.html#l01406">tagWND::hrgnUpdate</a>, <a class="el" href="a03728_source.html#l00456">IsVisible()</a>, <a class="el" href="a00899_source.html#l02273">tagTHREADINFO::pq</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00365_source.html#l02239">tagCARET::spwnd</a>, <a class="el" href="a00365_source.html#l02243">tagCARET::x</a> , 以及 <a class="el" href="a00365_source.html#l02244">tagCARET::y</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00620_source.html#l00486">_SetCaretPos()</a>, <a class="el" href="a00620_source.html#l00403">CaretBlinkProc()</a>, <a class="el" href="a00620_source.html#l00334">InternalHideCaret()</a> , 以及 <a class="el" href="a00620_source.html#l00294">InternalShowCaret()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa02889_html_ae8b869ec5b101646649020f5b0fd5d0d"><div class="ttname"><a href="a02889.html#ae8b869ec5b101646649020f5b0fd5d0d">tagTHREADINFO::TIF_flags</a></div><div class="ttdeci">DWORD TIF_flags</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02294">userk.h:2294</a></div></div>
<div class="ttc" id="aa02653_html_aa09d1a7d9cb310e25d9e0d57921defe3"><div class="ttname"><a href="a02653.html#aa09d1a7d9cb310e25d9e0d57921defe3">tagCARET::fVisible</a></div><div class="ttdeci">UINT fVisible</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02240">user.h:2240</a></div></div>
<div class="ttc" id="aa00620_html_a9c8e23caf8de0a17159f77151376731c"><div class="ttname"><a href="a00620.html#a9c8e23caf8de0a17159f77151376731c">CaretBlinkProc</a></div><div class="ttdeci">LONG CaretBlinkProc(PWND pwnd, UINT message, DWORD id, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00620_source.html#l00403">caret.c:403</a></div></div>
<div class="ttc" id="aa00839_html_a14fe1eb47a22ba1b713ca76ddf4180af"><div class="ttname"><a href="a00839.html#a14fe1eb47a22ba1b713ca76ddf4180af">CheckWinstaWriteAttributesAccess</a></div><div class="ttdeci">BOOL CheckWinstaWriteAttributesAccess(void)</div><div class="ttdef"><b>Definition:</b> <a href="a00839_source.html#l00485">security.c:485</a></div></div>
<div class="ttc" id="aa00620_html_a3cbaedd861a489fe981eca941b8568f4"><div class="ttname"><a href="a00620.html#a3cbaedd861a489fe981eca941b8568f4">InternalDestroyCaret</a></div><div class="ttdeci">void InternalDestroyCaret()</div><div class="ttdef"><b>Definition:</b> <a href="a00620_source.html#l00190">caret.c:190</a></div></div>
<div class="ttc" id="aa00371_html_ad6b24a3d61abdc148c8751b5c5add686"><div class="ttname"><a href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a></div><div class="ttdeci">#define RIP_VERBOSE</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00030">winerrp.h:30</a></div></div>
<div class="ttc" id="aa00887_html_ae3b42fc45613df6ae1803075394c386a"><div class="ttname"><a href="a00887.html#ae3b42fc45613df6ae1803075394c386a">_KillSystemTimer</a></div><div class="ttdeci">BOOL _KillSystemTimer(PWND pwnd, UINT nIDEvent)</div><div class="ttdef"><b>Definition:</b> <a href="a00887_source.html#l00408">timers.c:408</a></div></div>
<div class="ttc" id="aa00257_html_a8315d2c807ba18ba9e528c40614b6173"><div class="ttname"><a href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a></div><div class="ttdeci">PTHREADINFO PtiCurrent(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00526">winmgrc.c:526</a></div></div>
<div class="ttc" id="aa00620_html_aa4c915d2daf9e565570ae2eaef4a6312"><div class="ttname"><a href="a00620.html#aa4c915d2daf9e565570ae2eaef4a6312">UT_InvertCaret</a></div><div class="ttdeci">void UT_InvertCaret()</div><div class="ttdef"><b>Definition:</b> <a href="a00620_source.html#l00094">caret.c:94</a></div></div>
<div class="ttc" id="aa00644_html_a2123a4aeb57f1a00139f7d8ada52b213"><div class="ttname"><a href="a00644.html#a2123a4aeb57f1a00139f7d8ada52b213">_GetDC</a></div><div class="ttdeci">HDC _GetDC(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00644_source.html#l00066">dc.c:66</a></div></div>
<div class="ttc" id="aa00620_html_a1376ba7ebe3f4b2ab5ebe9fa20b3ed87"><div class="ttname"><a href="a00620.html#a1376ba7ebe3f4b2ab5ebe9fa20b3ed87">InternalHideCaret</a></div><div class="ttdeci">void InternalHideCaret()</div><div class="ttdef"><b>Definition:</b> <a href="a00620_source.html#l00334">caret.c:334</a></div></div>
<div class="ttc" id="aa03638_html_aedc8dc2d00e3a727cd22a983b28b1ce8"><div class="ttname"><a href="a03638.html#aedc8dc2d00e3a727cd22a983b28b1ce8">ghbrWhite</a></div><div class="ttdeci">HBRUSH ghbrWhite</div><div class="ttdef"><b>Definition:</b> <a href="a03638_source.html#l00023">client/random.c:23</a></div></div>
<div class="ttc" id="aa02889_html_a215417492fadc11678c689da2447f02e"><div class="ttname"><a href="a02889.html#a215417492fadc11678c689da2447f02e">tagTHREADINFO::ppi</a></div><div class="ttdeci">struct tagPROCESSINFO * ppi</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02271">userk.h:2271</a></div></div>
<div class="ttc" id="aa02581_html_a79d8579e0cf1a8fb985bc709e08f61ac"><div class="ttname"><a href="a02581.html#a79d8579e0cf1a8fb985bc709e08f61ac">tagWND::hrgnUpdate</a></div><div class="ttdeci">HRGN hrgnUpdate</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01406">user.h:1406</a></div></div>
<div class="ttc" id="aa00371_html_ae61d954062a9ece52e350e54cad9a23d"><div class="ttname"><a href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a></div><div class="ttdeci">#define RIPERR0(idErr, flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00119">winerrp.h:119</a></div></div>
<div class="ttc" id="aa03257_html_a1a36496b13c02b06ee64e9c01c029477"><div class="ttname"><a href="a03257.html#a1a36496b13c02b06ee64e9c01c029477">ghdcMem</a></div><div class="ttdeci">HDC ghdcMem</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00399">kernel/globals.c:399</a></div></div>
<div class="ttc" id="aa02653_html_a66951a0ad337be0de6e9afef18a5f0c4"><div class="ttname"><a href="a02653.html#a66951a0ad337be0de6e9afef18a5f0c4">tagCARET::iHideLevel</a></div><div class="ttdeci">int iHideLevel</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02242">user.h:2242</a></div></div>
<div class="ttc" id="aa00644_html_a1ec030500a19f775519fbaf16c15f814"><div class="ttname"><a href="a00644.html#a1ec030500a19f775519fbaf16c15f814">_ReleaseDC</a></div><div class="ttdeci">BOOL _ReleaseDC(HDC hdc)</div><div class="ttdef"><b>Definition:</b> <a href="a00644_source.html#l00102">dc.c:102</a></div></div>
<div class="ttc" id="aa00887_html_a23803d0eb05592a1e1ae26b60e68b420"><div class="ttname"><a href="a00887.html#a23803d0eb05592a1e1ae26b60e68b420">_SetSystemTimer</a></div><div class="ttdeci">UINT _SetSystemTimer(PWND pwnd, UINT nIDEvent, DWORD dwElapse, WNDPROC_PWND pTimerFunc)</div><div class="ttdef"><b>Definition:</b> <a href="a00887_source.html#l00078">timers.c:78</a></div></div>
<div class="ttc" id="aa02653_html_a76d9dcc2ea83b79b30ea63fd45ad98db"><div class="ttname"><a href="a02653.html#a76d9dcc2ea83b79b30ea63fd45ad98db">tagCARET::hTimer</a></div><div class="ttdeci">UINT hTimer</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02248">user.h:2248</a></div></div>
<div class="ttc" id="aa02581_html"><div class="ttname"><a href="a02581.html">tagWND</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01388">user.h:1388</a></div></div>
<div class="ttc" id="aa02869_html_ade15a80896abdba1533b909440c29699"><div class="ttname"><a href="a02869.html#ade15a80896abdba1533b909440c29699">tagQ::caret</a></div><div class="ttdeci">CARET caret</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02182">userk.h:2182</a></div></div>
<div class="ttc" id="aa00716_html_ac7b5fb8555805e7e7c11b30491a324f7"><div class="ttname"><a href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a></div><div class="ttdeci">int cy[5]</div><div class="ttdef"><b>Definition:</b> <a href="a00716_source.html#l00456">inctlpan.c:456</a></div></div>
<div class="ttc" id="aa00824_html_a3a58c2275b35d4e251d1d2801c54b477"><div class="ttname"><a href="a00824.html#a3a58c2275b35d4e251d1d2801c54b477">PtiFromThreadId</a></div><div class="ttdeci">PTHREADINFO PtiFromThreadId(DWORD dwThreadId)</div><div class="ttdef"><b>Definition:</b> <a href="a00824_source.html#l03425">queue.c:3425</a></div></div>
<div class="ttc" id="aa02653_html_a0a2f84ed7838f07779ae24c5a9086d33"><div class="ttname"><a href="a02653.html#a0a2f84ed7838f07779ae24c5a9086d33">tagCARET::y</a></div><div class="ttdeci">int y</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02244">user.h:2244</a></div></div>
<div class="ttc" id="aa02889_html_aea8fcdf7513cfa8972ff27524296079b"><div class="ttname"><a href="a02889.html#aea8fcdf7513cfa8972ff27524296079b">tagTHREADINFO::pq</a></div><div class="ttdeci">struct tagQ * pq</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02273">userk.h:2273</a></div></div>
<div class="ttc" id="aa02513_html_a337256ee4b9e7c11b14e88d307effa30"><div class="ttname"><a href="a02513.html#a337256ee4b9e7c11b14e88d307effa30">tagSERVERINFO::dtCaretBlink</a></div><div class="ttdeci">UINT dtCaretBlink</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00986">user.h:986</a></div></div>
<div class="ttc" id="aa00620_html_a451133a6bc94aba7a6b9818691d5faf9"><div class="ttname"><a href="a00620.html#a451133a6bc94aba7a6b9818691d5faf9">UT_CaretSet</a></div><div class="ttdeci">BOOL UT_CaretSet(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00620_source.html#l00028">caret.c:28</a></div></div>
<div class="ttc" id="aa00620_html_abaf8f946537e0303f6ba99f21d716670"><div class="ttname"><a href="a00620.html#abaf8f946537e0303f6ba99f21d716670">InternalShowCaret</a></div><div class="ttdeci">void InternalShowCaret()</div><div class="ttdef"><b>Definition:</b> <a href="a00620_source.html#l00294">caret.c:294</a></div></div>
<div class="ttc" id="aa02653_html_ad36501a70b25e18bcf48dd6e03392305"><div class="ttname"><a href="a02653.html#ad36501a70b25e18bcf48dd6e03392305">tagCARET::cy</a></div><div class="ttdeci">int cy</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02245">user.h:2245</a></div></div>
<div class="ttc" id="aa00896_html_a65a8e2481578c9a2f313bfd34f9aa249"><div class="ttname"><a href="a00896.html#a65a8e2481578c9a2f313bfd34f9aa249">_ExcludeUpdateRgn</a></div><div class="ttdeci">int _ExcludeUpdateRgn(HDC hdc, PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00896_source.html#l01398">update.c:1398</a></div></div>
<div class="ttc" id="aa02653_html_af2ea03b8e56f206aa9ed964f0c3b3b24"><div class="ttname"><a href="a02653.html#af2ea03b8e56f206aa9ed964f0c3b3b24">tagCARET::fOn</a></div><div class="ttdeci">UINT fOn</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02241">user.h:2241</a></div></div>
<div class="ttc" id="aa02653_html_af905a9989361d094908ad04e08f6429d"><div class="ttname"><a href="a02653.html#af905a9989361d094908ad04e08f6429d">tagCARET::cx</a></div><div class="ttdeci">int cx</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02246">user.h:2246</a></div></div>
<div class="ttc" id="aa02889_html"><div class="ttname"><a href="a02889.html">tagTHREADINFO</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02260">userk.h:2260</a></div></div>
<div class="ttc" id="aa02653_html_a68937d60a6f49b7a8431db62b38ea721"><div class="ttname"><a href="a02653.html#a68937d60a6f49b7a8431db62b38ea721">tagCARET::spwnd</a></div><div class="ttdeci">struct tagWND * spwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02239">user.h:2239</a></div></div>
<div class="ttc" id="aa00020_html_ad760da1dd81d9e84dee607d18edfde39"><div class="ttname"><a href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a></div><div class="ttdeci">PSERVERINFO gpsi</div><div class="ttdef"><b>Definition:</b> <a href="a00020_source.html#l00039">clglobal.c:39</a></div></div>
<div class="ttc" id="aa02653_html_a6150e0515f7202e2fb518f7206ed97dc"><div class="ttname"><a href="a02653.html#a6150e0515f7202e2fb518f7206ed97dc">tagCARET::x</a></div><div class="ttdeci">int x</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02243">user.h:2243</a></div></div>
<div class="ttc" id="aa02653_html_abcd75f399219ad50af9203b3af664789"><div class="ttname"><a href="a02653.html#abcd75f399219ad50af9203b3af664789">tagCARET::tid</a></div><div class="ttdeci">DWORD tid</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02249">user.h:2249</a></div></div>
<div class="ttc" id="aa02653_html_a9fc5abab889d6fd98fcc0efdc177bd7e"><div class="ttname"><a href="a02653.html#a9fc5abab889d6fd98fcc0efdc177bd7e">tagCARET::hBitmap</a></div><div class="ttdeci">HBITMAP hBitmap</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02247">user.h:2247</a></div></div>
<div class="ttc" id="aa02869_html"><div class="ttname"><a href="a02869.html">tagQ</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02156">userk.h:2156</a></div></div>
<div class="ttc" id="aa00365_html_ad3225ce06580cb58802233512f3d9c81"><div class="ttname"><a href="a00365.html#ad3225ce06580cb58802233512f3d9c81">IsVisible</a></div><div class="ttdeci">BOOL IsVisible(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a03728_source.html#l00456">rtl/winmgr.c:456</a></div></div>
<div class="ttc" id="aa03638_html_a0f352eeb287eff80ca03bb5947be417e"><div class="ttname"><a href="a03638.html#a0f352eeb287eff80ca03bb5947be417e">ghbrGray</a></div><div class="ttdeci">HBRUSH ghbrGray</div><div class="ttdef"><b>Definition:</b> <a href="a03638_source.html#l00025">client/random.c:25</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_2a0a56546b70a0973705719e6a88eab3.html">kernel</a></li><li class="navelem"><a class="el" href="a00620.html">caret.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
